Measurement of oxygen consumption and caloric expenditure